﻿using Entity.Models.Entities;
using Microsoft.EntityFrameworkCore;
using System;

namespace IDAL
{
    public interface IUserDAL
    {
        /// <summary>
        /// 查询用户所有数据
        /// </summary>
        /// <returns></returns>
        DbSet<UserInfo> getUserShowDAL();

        /// <summary>
        /// 添加用户信息
        /// </summary>
        /// <param name="userInfo"></param>
        int AddUserDAL(UserInfo userInfo);

        /// <summary>
        /// 删除用户信息
        /// </summary>
        /// <param name="userId"></param>
        int DatateUserDAL(string userId);

        /// <summary>
        /// 更新用户信息
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        int UpdateUserDAL(UserInfo user);

  
    }
}
